Custom Button Widget
A custom ButtonWidget implementation with builder and rendering improvements (and more features in general)
This constructor is for subclasses of this widget only. Buttons should be constructed with the builder, like vanilla buttons.
Author
fzzyhmstrs
Since
0.5.?
Parameters
button X position
button Y position
button width in pixels
button height in pixels
Consumer<CustomButtonWidget> action to invoke when the button is clicked or activated
ButtonWidget.NarrationSupplier same use as in vanilla; converts a provided input text into a narration text.
Consumer<NarrationMessageBuilder> unlike the supplier, this is used to directly append additional narrations as needed to the message builder.
TextureSet, default CustomPressableWidget.DEFAULT_TEXTURES. The textures for this button
TooltipChild, used to pass additional tooltip context. This button will pass and tooltip from this child out to its own parent (this button is also a TooltipChild)
If false, the label won't be rendered
Types
Functions
Provides a list of text for appending into a Narration Hint. By default this will use the same lines passed from provideTooltipLines, with predefined values for the inputs